<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<link rel="stylesheet" href="${basePath}/static/plugins/datepicker/bootstrap-datetimepicker.css">
<link rel="stylesheet" href="${basePath}/static/plugins/datatables/dataTables.bootstrap.css">

<section class="content-header">
	<ol class="breadcrumb">
		<li><a href="${basePath }/daily/dailyView"><i
				class="fa fa-dashboard"></i> 积分管理</a></li>
		<li class="active">积分规则</li>
	</ol>
</section>
<div class="content">
	<div class="panel panel-info">
		<div class="panel-heading">积分规则</div>
		<div class="panel-body">
			<!-- 查询列表  start-->
			<form id="ruleSearchForm">
				<div class="row" role="form">
					<div class="form-group form-inline col-sm-3">
						<label for="ruleName">规则名称:</label> <input type="text"
							class="form-control" name="ruleName" id="ruleName"
							style="width: 160px;" placeholder="规则名称">
					</div>
					<div class="form-group form-inline col-sm-3">
						<label for="ruleCode">规则编码:</label> <input type="text"
							class="form-control" name="ruleCode" id="ruleCode"
							style="width: 160px;" placeholder="规则编码">
					</div>
					<div class="form-group form-inline col-sm-3">
						<label for="validDate">有效日期:</label> <input type="text"
							class="form-control" name="validDate" id="validDate"
							style="width: 170px;" placeholder="yyyy-mm-dd">
					</div>
					<!--
				  	<div class="col-sm-1">
				  		<a class="more-ops ex-options">更多选项</a>
				  		<a class="more-ops cl-options" style="display:none;">收起选项</a>
				  	</div>
				  	 -->
					<div class="col-sm-2">
						<button type="button" class="btn btn-info" style="width: 120px;" id="ruleSearch">查 询</button>
					</div>
				</div>
				<div class="row" role="form" id="extendCondition"
					style="display: none;"></div>
			</form>
			<!-- 查询列表  end -->
			<br>
			<div class="toolBar" style="margin: 5px;">
				<button type="button" id="ruleAdd" class="btn btn-success btn-xs"
					style="width: 80px;">新&nbsp;&nbsp;增</button>
				<button type="button" id="ruleDel" class="btn btn-danger btn-xs"
					style="width: 80px;">删&nbsp;&nbsp;除</button>
			</div>
			<!-- 日志表格内容 start-->
			<table id="rule_grid" class="table table-bordered table-hover">
				<thead>
					<tr>
                        <th><input type="checkbox" name="checkAll" id="ruleCheckAll"></th>
						<th>序号</th>
						<th>规则名称</th>
						<th>规则编码</th>
						<th>积分</th>
						<th>是否启用</th>
						<th>执行频率</th>
						<th>有效日期</th>
                        <th>操作</th>
					</tr>
				</thead>
			</table>
			<!-- 日志表格内容 end -->
		</div>
	</div>
</div>

<!-- 积分规则新增用模态框 -->
<div class="modal fade" id="rule_add_modal" tabindex="-1" role="dialog">
	<form id="rule_add_from">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-body no-padding">
					<div class="box box-primary">
						<div class="box-header with-border">
							<h3 class="box-title">新增积分规则</h3>
						</div>

						<div class="box-body"></div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="submit" class="btn btn-primary">保存</button>
				</div>
			</div>
		</div>
	</form>
</div>

	<!-- 积分规则新增用模态框 -->
<div class="modal fade" id="rule_update_modal" tabindex="-1" role="dialog">
	<form id="rule_update_form">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-body no-padding">
					<div class="box box-primary">
						<div class="box-header with-border">
							<h3 class="box-title">修改积分规则</h3>
						</div>

						<div class="box-body"></div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="submit" class="btn btn-primary">保存</button>
				</div>
			</div>
		</div>
	</form>
</div>

<script src="${basePath}/static/plugins/datepicker/bootstrap-datetimepicker.js"></script>
<script src="${basePath}/static/plugins/datepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="${basePath}/static/plugins/datatables/jquery.dataTables.js"></script>
<script src="${basePath}/static/plugins/datatables/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="${basePath}/static/plugins/jquery.validate/jquery.validate.min.js"></script>

<script src="${basePath}/static/adminLTE/js/integral/rule.js"></script>

